package test4aliyunapi
import (
    p5fbe3259b "gitee.com/bitwormhole/cloud-aliyun-api/aliyun/openapi"
    p5294a7ebb "gitee.com/bitwormhole/cloud-aliyun-api/src/test/golang/unit"
     "github.com/starter-go/application"
)

// type p5294a7ebb.DNSUnit in package:gitee.com/bitwormhole/cloud-aliyun-api/src/test/golang/unit
//
// id:com-5294a7ebb378df45-unit-DNSUnit
// class:class-0dc072ed44b3563882bff4e657a52e62-Units
// alias:
// scope:singleton
//
type p5294a7ebb3_unit_DNSUnit struct {
}

func (inst* p5294a7ebb3_unit_DNSUnit) register(cr application.ComponentRegistry) error {
	r := cr.NewRegistration()
	r.ID = "com-5294a7ebb378df45-unit-DNSUnit"
	r.Classes = "class-0dc072ed44b3563882bff4e657a52e62-Units"
	r.Aliases = ""
	r.Scope = "singleton"
	r.NewFunc = inst.new
	r.InjectFunc = inst.inject
	return r.Commit()
}

func (inst* p5294a7ebb3_unit_DNSUnit) new() any {
    return &p5294a7ebb.DNSUnit{}
}

func (inst* p5294a7ebb3_unit_DNSUnit) inject(injext application.InjectionExt, instance any) error {
	ie := injext
	com := instance.(*p5294a7ebb.DNSUnit)
	nop(ie, com)

	
    com.OpenAPI = inst.getOpenAPI(ie)


    return nil
}


func (inst*p5294a7ebb3_unit_DNSUnit) getOpenAPI(ie application.InjectionExt)p5fbe3259b.Service{
    return ie.GetComponent("#alias-5fbe3259be914e08425cc316caa44d2f-Service").(p5fbe3259b.Service)
}


